package com.opc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 作者
 * @since 2023-03-14
 */
@Getter
@Setter
@TableName("t_device_record")
public class DeviceRecord extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;

    /**
     * 计数值
     */
    @TableField("val")
    private Integer val;

    /**
     * 设置值
     */
    @TableField("val_type")
    private Integer valType;

    /**
     * 重置次数
     */
    @TableField("reset_times")
    private Integer resetTimes;

    /**
     * 设备编码
     */
    @TableField("device_code")
    private String deviceCode;

    /**
     * 重置时间
     */
    @TableField("reset_time")
    private Date resetTime;

    /**
     * 0正常 1：异常记录，设备提前更换,用于异常的分析
     */
    @TableField("record_type")
    private Long recordType;

}
